package com.example.shiro.service.Impl;

import com.example.shiro.dao.UserMapper;
import com.example.shiro.model.User;
import com.example.shiro.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: guoc
 * @createDate: 2020/4/24 14:14
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserByName(String userName) {
        return userMapper.getUser(userName);
    }


}
